package 设计模式.单例模式;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/18 22:57
 */
public class Singleton {
    private Singleton() {
    }
    private static Singleton singleton;
    static {
        singleton = new Singleton();
    }
    public static Singleton getSingleton(){
        return singleton;
    }
}
